package com.pg.auth.model.dto.sysrole;

import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
import com.pg.auth.model.entity.SysRole;
import com.pg.auth.model.dto.sysrole.SysRoleVO;
import java.util.List;


/***
 * 对象转换
 * @author : huhuaping
 * @Date : 2024-06-06 19:55:33
 */
@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysRoleConvertor {

    SysRoleConvertor INSTANCE = Mappers.getMapper(SysRoleConvertor.class);

    SysRole dtoToDB(SysRoleDTO sysRoleDTO);

    SysRoleVO dbToVO(SysRole sysRole);

    List<SysRoleVO> listDbToVO(List<SysRole> list);
}
